package org.bud.data.bit.fmt;

import org.bud.data.bit.ask.FmtAsk;

import java.util.function.Function;

/**
 * @author shaun
 * @date 2024/7/21
 * @instruction
 */
public interface FmtData<T> {
   T origin(Object obj);
   T fmt(Object data, String key, FmtAsk ask) throws Exception;
   Function<T,?> fain();
   default Object fain(Object data, String key, FmtAsk ask) throws Exception {
      return fain().apply(fmt(data,key,ask));
   }
}
